import { createRouter, createWebHistory } from 'vue-router';
// import r from "./route-build";
import Home from '@/views/index.vue';

const routes = [
  {
    path: '/',
    component: Home,
  },
  {
    path: '/detail',
    component: () => import('@/demo/detail.vue'),
  },
  {
    path: '/table',
    component: () => import('@/demo/table.vue'),
  },
  {
    path: '/scrolltable',
    component: () => import('@/demo/scrolltable.vue'),
  },
];

const router = createRouter({
  history: createWebHistory(cyber.isMicro ? cyber.env.baseRoute : process.env.BASE_URL),
  routes,
});

export default router;
